<?PHP
#
# author: Cody Sorgenfrey with Jason Sanchez
# (c) 2012 Casa De Bendicion
#

include_once("common.php");

$title= "Board of Directors";
$metaKey= null;
$metaDesc="About the board of directors over the Orphanage in Bachiniva Mexico.";
$moreHtml= null;
$moreJava= null;

startPage($title, $metaKey, $metaDesc, $moreHtml, $moreJava, $title);

connectSelectTest('bod');

$result = mysql_query("SELECT * FROM `bod` ORDER BY `order` ASC");

while ($person = mysql_fetch_array($result)) {

	$paragraph .= "<h3>".$person['name']."</h3>
				<p style='margin-top:-25px;'>".$person['position']."</p>\n
				<table>
				<tr>
				<td>
				<img style='height:200px;'src='".$person['pic']."'></img>
				</td>
				<td style='width:50px;'></td>
				<td style='margin-top:-15px;'><p>".htmlspecialchars($person['bio'])."<br></td></p>
				</tr>
				</table>";
}

$first = mainBox($paragraph, "autoBox", "0px;");

$second = mailingBox("0px", "beliefs.php");

$third = "<div style='height:5px; width:705px;'></div>";

$fourth = "<div style='height:5px; width:250px;'></div>";

printPageTable($first, $second, $third, $fourth);

endPage();

?>